﻿// Number = unitName addAction [title, filename, (arguments, priority (0-6), showWindow/Titletext, hideOnUse, shortcut, condition)]
// args à récupérer = tableau de 4 éléments dont les args passés au script sont le 4ème éléments donc "_this select 3"

_cas = _this select 3;

If (X_AirSupplyIsAvailable) then{
	Switch (_cas) do {
		case 0: {
			["", [["RUOrdnanceBox","scripts\RearmCargo.sqf",2]], 5, 40] execVM "scripts\AirSupply\ASMarkerDropPos.sqf";
		};
		case 1: {
			["", ["HMMWV_Armored"], 5, 40,"C130J"] execVM "scripts\AirSupply\ASMarkerDropPos.sqf";
		};
	};
} else {
	hint Format["You cannot call Air Support anymore"];
};


